

import requests


def send_enterprise_message(message):
    webhook_url = "https://qyapi.weixin.qq.com/cgi-bin/webhook/send?key=61503ede-65ef-4b6f-bfb5-64f74850f468"
    payload = {
        "msgtype": "markdown",
        "markdown": {
            "content": message
        }
    }
    try:
        response = requests.post(webhook_url, json=payload)
        return response
    except Exception as e:
        print(f"发送企业微信消息失败: {e}")
        return None